package com.ymttest.database.sqlwapper.CSIM;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundDimension;
import com.ymttest.database.model.ymt_csmaxsessioncount;
import com.ymttest.database.model.ymt_csmaxsessioncount;
import com.ymttest.utils.EnvSetup;

/************************************************************************************
 * @File name : ymt_csmaxsessioncountWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *csim
 ************************************************************************************/
public class ymt_csmaxsessioncountWapper {
	SqlManager manage;

	
	public ymt_csmaxsessioncountWapper() {
		manage = new SqlManager("ymtcsim" + EnvSetup.getEnv());
		 
	}
	public  ymt_csmaxsessioncount selectByPrimaryKey(Integer CSId) throws InterruptedException {
		ymt_csmaxsessioncount model=new ymt_csmaxsessioncount();
		List<ymt_csmaxsessioncount> list =  manage.getSelectResults("com.ymttest.database.mapping.ymt_csmaxsessioncountMapper.selectByPrimaryKey",CSId);
		if(list.size()>0)
			model=list.get(0);
		manage.commit();
		return model;
	}
	
	public int updateByPrimaryKey(ymt_csmaxsessioncount record)
	{
		int count=manage.update("com.ymttest.database.mapping.ymt_csmaxsessioncountMapper.updateByPrimaryKey",record);
		manage.commit();
		return count;
	}
	public  List<ymt_csmaxsessioncount> selectAll() throws InterruptedException {
		List<ymt_csmaxsessioncount> list =  manage.getSelectResults("com.ymttest.database.mapping.ymt_csmaxsessioncountMapper.selectAll",null);
		manage.commit();
		return list;
	}
	
	public static void main(String args[]) {
	  
	}
	
	
}
